//
//  HHCustomTextFieldViewController.m
//  Flower
//
//  Created by 花花 on 2016/12/13.
//  Copyright © 2016年 花花. All rights reserved.
//

#import "HHCustomTextFieldViewController.h"

#import "HHSelectedTextField.h"
@interface HHCustomTextFieldViewController ()

@property (weak, nonatomic) IBOutlet HHSelectedTextField *singDataTextField;

@end

@implementation HHCustomTextFieldViewController

/**
 <#Description#>
 */
- (void)viewDidLoad {
    [super viewDidLoad];
    
    


    NSArray *data= @[@"数学",@"语文",@"英语",@"地理",@"生物",@"化学",@"体育",@"电脑课",@"C--",@"C++",@"OC",@"Java",@"HTML5"];
    [_singDataTextField showSingleColPickerWithToolBarText:@"课程" withData:data withDefault:3 withCancelHandler:^{
       
        NSLog(@"-----------");
    } withDoneHandler:^(UITextField *textField, NSInteger selectedIndex, NSString *selectedValue) {
       
//        [self showHudAutoHideString:textField.text]

    
        NSLog(@"%@-----%@---%zd",textField.text,selectedValue,selectedIndex);
    }];

    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
